/*
1. 导包  import java.util.Scanner;
2. Scanner实例化   Scanner scan = new Scanner(System.in);
3. 调用Scanner类的相关方法 scan.next / scan.nextXxx;

*/
import java.util.Scanner;

class ScannerTest{
	
	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);

		int num = scan.nextInt();

		System.out.println(num);


		System.out.println("请输入你的姓名：");
		String name = scan.next();
		System.out.println(name);

		System.out.println("请输入你的年龄：");
		int age = scan.nextInt();
		System.out.println(age);

		System.out.println("请输入你的体重：");
		double weight = scan.nextDouble();
		System.out.println(weight);

		System.out.println("你是否学习了？（true/false）：");
		boolean islearning = scan.nextBoolean();
		System.out.println(islearning);	

		System.out.println("请输入你的性别（男/女）：");
		String gender = scan.next();
		char genderChar = gender.charAt(2);
		System.out.println(genderChar);
	}
}